<?php
/**
 * Smarty cat modifier plugin
 *
 * Type:     modifier<br>
 * Name:     mb_substr<br>
 * Date:     April 17, 2009
 * Purpose:  substr 1 string follow unicode format
 * Input:    string to catenate, number characters need substring
 * Example:  {$var|mb_substr:120}
 * @author   minh.than <minh.than@ionetwork.com>
 * @version 1.0
 * @param string
 * @param int
 * @return string
 */
function smarty_modifier_get_file_name($filename)
{
	$pos = strpos($filename,"_");			
	$main_filename = substr($filename,++$pos);
	return $main_filename;
}
?>